package com.swm.model;

import java.util.ArrayList;
import java.util.Map;

import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "movies")
public class MovieList {
	@XmlElementRef
	ArrayList<Movie> movies;	

	public MovieList() {  }

	public MovieList( Map<Integer, Movie> movieMap ) {
		movies = new ArrayList<Movie>( movieMap.values() );
	}
	
	public MovieList( ArrayList<Movie> movieList ) {
		movies = new ArrayList<Movie>( movieList );
	}
}
